<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class ExampleController extends Controller
{
  /**
   * Create a new controller instance.
   *
   * @return void
   */
  public function __construct()
  {
  }

  //
  public function index(Request $request)
  {
    return ApiReturn();
  }

  public function test()
  {
//      Log::channel('customLog')->error('This is custom log error.');
      return ApiReturn(RETURN_SUCCESS, "Test");
  }

    /**
     * 验签测试接口
     * @param Request $request
     * @return false|string
     * @throws \Exception
     */
  public function checkSign(Request $request) {
      return ApiReturn(RETURN_SUCCESS, '验签成功', $request->all());
  }
}
